package com.jinjiafeng.enjoyjoke;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;

public class MessageService extends Service {
    public MessageService() {

    }

    @Override
    public IBinder onBind(Intent intent) {
        return mIBinder;
    }

    private IUserInterface.Stub mIBinder = new IUserInterface.Stub(){
        @Override
        public String getUserName() throws RemoteException {
            return "jjf";
        }

        @Override
        public String getUserPwd() throws RemoteException {
            return "123456";
        }
    };

}
